
from django.urls import path
from . import views

from .views import home, HomeView
 
urlpatterns = [
    path('', views.home, name='home'),            # 主页
    path('about/', views.about, name='about'),    # 关于页面
    path('user/',views.login,name='user'),
    path('admin/',views.login,name='admin'),
    path('coach/',views.login,name='coach'),
    path('register/',views.register,name='register'),
    path('register_success/',views.register_success,name='register_success'),
    path('user/search_course/',views.search_course,name='search_course'),
    path('user/user_booking/',views.user_booking,name='user_booking'),
    path('user/coach_course/',views.coach_course,name='coach_course'),
    path('user/create_new_course/',views.create_new_course,name='create_new_course'),
    path('captcha/', views.captcha_view, name='captcha'),  # 新增验证码路由
]